//
//  BCUserCenterCell.m
//  BaoYouYou
//
//  Created by caobo56 on 2016/12/4.
//  Copyright © 2016年 caobo56. All rights reserved.
//

#import "BCUserCenterCell.h"

@interface BCUserCenterCell()
@property (weak, nonatomic) IBOutlet UIImageView *leftImageView;

@property (weak, nonatomic) IBOutlet UILabel *titleLable;

@end

@implementation BCUserCenterCell


+(instancetype)getBCUserCenterCell{
    
    return  [[[NSBundle mainBundle] loadNibNamed:@"BCUserCenterCell" owner:nil options:nil] firstObject];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)loaDataWith:(NSInteger)index{
    switch (index) {
        case 0:{
            _leftImageView.image = [UIImage imageNamed:@"ic_bg"];
            _titleLable.text = @"帮助";
        }
            break;
        case 1:{
            _leftImageView.image = [UIImage imageNamed:@"ic_bz"];
            _titleLable.text = @"知识大全";
        }
            break;
        case 2:{
            _leftImageView.image = [UIImage imageNamed:@"ic_gy"];
            _titleLable.text = @"关于";
        }
            break;

        case 3:{
            _leftImageView.image = [UIImage imageNamed:@"ic_tc"];
            _titleLable.text = @"退出登录";
        }
            break;
        default:
            break;
    }
}

-(void)loaKnowledgeDataWith:(NSInteger)index{

    switch (index) {
        case 0:{
            _leftImageView.image = [UIImage imageNamed:@"ic_bg"];
            _titleLable.text = @"备孕知识";
        }
            break;
        case 1:{
            _leftImageView.image = [UIImage imageNamed:@"ic_gy"];
            _titleLable.text = @"孕期知识";
        }
            break;
        case 2:{
            _leftImageView.image = [UIImage imageNamed:@"ic_tc"];
            _titleLable.text = @"产后知识";
        }
            break;

        default:
            break;
    }

}

@end
